From: Florian Müllner Date: Tue, 11 Jul 2023 14:43:02 +0000 (+0200) Subject: tests/shell: Also import built-in modules as modules X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~337^2~1^2~161 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b0384bee99f1aac62628d23abd42ff696dca8f76;p=gnome-shell.git tests/shell: Also import built-in modules as modules The "System" module is provided by gjs itself, and also available as module. Part-of: --- diff --git a/tests/shell/core.js b/tests/shell/core.js index 78d17d8c9..933960104 100644 --- a/tests/shell/core.js +++ b/tests/shell/core.js @@ -1,7 +1,7 @@ // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- /* eslint camelcase: ["error", { properties: "never", allow: ["^script_", "^malloc", "^glx", "^clutter"] }] */ -const System = imports.system; +import System from 'system'; const Main = imports.ui.main; const Scripting = imports.ui.scripting;